/**
 * 
 */
package instructions;

import dataCPU.*;

/**
 * @author dt08nu0
 *
 */
public class Jump implements Instruction {

	/**
	 * 
	 */
	private int index;
	public Jump(int index) {
		this.index = index;
		
	}

    public String toString() {
	return "JMP "+index;
    }

	@Override
	public Word execute(Memory memory, Integer programCounter) {
	    programCounter = index;
	}
	


}
